package com.elastic.enums;

public class TestPerson {


    public static void main(String[] args) throws InstantiationException, IllegalAccessException {

        PersonEnum personClass = PersonEnum.getPersonClass(1);


        Class<? extends Person> matchUtils = personClass.getMatchUtils();

        Person person = matchUtils.newInstance();

        person.play();

        System.out.println(matchUtils);


    }


}
